﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Bird.OAWeb.Domain.Table;
using Bird.OAWeb.Domain.DTO;
using Dommel;

namespace Bird.OAWeb.Service.IService
{
    public interface IRoleService
    {
        /// <summary>
        /// 角色添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int RoleAdd(Role model);
        /// <summary>
        /// 角色显示
        /// </summary>
        /// <param name="pageList"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        public PageList<RoleDto> RoleShow(int pageIndex=1,int pageSize=2);
        /// <summary>
        /// 角色删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool RoleDelete(int id);
        /// <summary>
        /// 角色反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Role RoleBind(int id);
        /// <summary>
        /// 角色修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool RoleUpdate(Role model);

    }
}
